.jsx-reference {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: white;
}

.jsx-reference h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.reference-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reference-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.reference-card h3 {
  color: #ffd700;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
  padding-bottom: 0.5rem;
}

.syntax-examples {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.example {
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #ffd700;
}

.example h4 {
  color: #ffd700;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.example pre {
  background: rgba(0, 0, 0, 0.6);
  padding: 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1.4;
  overflow-x: auto;
  margin: 0;
  color: #e0e0e0;
  font-family: 'Courier New', monospace;
}

/* 错误卡片特殊样式 */
.error-card {
  border-color: #ff6b6b;
}

.error-card h3 {
  color: #ff6b6b;
  border-bottom-color: rgba(255, 107, 107, 0.3);
}

.error-card .example {
  border-left-color: #ff6b6b;
}

.error-card .example h4 {
  color: #ff6b6b;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .jsx-reference {
    padding: 1rem;
  }
  
  .jsx-reference h2 {
    font-size: 2rem;
  }
  
  .reference-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .reference-card {
    padding: 1.5rem;
  }
  
  .example pre {
    font-size: 0.8rem;
    padding: 0.75rem;
  }
} 